def run(params:list[str]):
    from modelscope.pipelines import pipeline
    from modelscope.utils.constant import Tasks
    from ApiBase import apiBase
    try:
        from modelscope.pipelines import pipeline
        from modelscope.utils.constant import Tasks
        cnt = apiBase.argv(1,'他继续与貝塞斯達遊戲工作室在接下来辐射4游戏')
        
        ner_pipeline = pipeline(Tasks.named_entity_recognition, 'damo/nlp_raner_named-entity-recognition_chinese-large-generic')
        result = ner_pipeline(cnt)

        print(result)
    # {'output': [{'type': 'CORP', 'start': 4, 'end': 13, 'span': '貝塞斯達遊戲工作室'}, {'type': 'CW', 'start': 17, 'end': 20, 'span': '辐射4'}]}
    finally:
        ner_pipeline=None
        apiBase.close()